<?php
namespace app\api\model;
/** 
* Document
*/
class UserAddress extends Base {
    
    protected $hidden = ['delete_time','update_time'];
    protected $autoWriteTimestamp = true;
    
    public static function getByUserID($uid){
        $res = self::get(['user_id'=>$uid]);
        return $res->toArray();
    }
}